package com.itwlj.vo;

import com.itwlj.entity.OrderGoods;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderVO {

    //id
    private Long id;

    //用户id
    private Long userId;

    //订单创建时间
    private LocalDateTime createTime;

    //订单支付方式
    private String payType;

    //订单支付渠道
    private String payChannel;

    //备注
    private String buyerMessage;

    //订单状态
    private Integer orderState;

    //订单金额合计
    private BigDecimal totalMoney;

    //订单数量合计
    private Integer totalNum;

    //订单收货人
    private String receiver;

    //订单收货人-联系方式
    private String receiverContact;

    //订单收货人-详细地址
    private String receiverAddress;

    //订单支付时间
    private LocalDateTime payTime;

    //支付结果
    private Integer payResult;

    //订单发货时间
    private LocalDateTime consignTime;

    //订单交易完成时间
    private LocalDateTime endTime;

    //订单交易关闭时间
    private LocalDateTime closeTime;

    //订单商品集合
    private List<OrderGoods> orderGoodsList;
}
